package com.unittec.zk.gateway.runner;

import com.unittec.zk.gateway.common.ApplicationUtils;
import com.unittec.zk.provider.common.ServiceFuncUtils;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @author: chenjiawang
 * @CreateDate: 2020/3/13 14:56
 */
@Component
@Order(9)
public class InitRunner implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        //初始化  所有url
        ServiceFuncUtils.init();
        //初始化所有 appid
        ApplicationUtils.init();
    }
}
